package com.zzyy.dtx.order.api;

import com.zzyy.dtx.order.dto.OrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.core.annotation.Order;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @auther zzyy
 * @create 2023-04-16 15:30
 */
@FeignClient("DTX-ORDER8001")
public interface OrderApi {

    @RequestMapping(value = "/order/orderList",method = RequestMethod.GET)
    public List<OrderDTO> orderList();

    @RequestMapping(value = "/order/findOrderNo",method = RequestMethod.GET)
    public OrderDTO findOrderNo(@RequestParam("orderNo") String orderNo);

}

